import request from '@/config/axios'


export interface AccessAllDataRespVO {
  alias: string
  get:boolean, head:boolean, gets:boolean, heads:boolean, post:boolean, put:boolean, delete:boolean, crud:boolean,
  methodsBool:boolean
}
export interface RoleAccessAddReqVO {
  roleId: number
  accessAllDataReqVOList: AccessAllDataRespVO[]
}
// 查询角色列表
export const addRoleAccess = async (data: RoleAccessAddReqVO) => {
  return await request.post({ url: '/system/role-access/addRoleAccess', data })
}
